<?php
// 全局中间件定义文件
//use think\middleware\AllowCrossDomain;
return [
    // 全局请求缓存
    // \think\middleware\CheckRequestCache::class,
    // 多语言加载
    // \think\middleware\LoadLangPack::class,
    // Session初始化
    // \think\middleware\SessionInit::class

    // AllowCrossDomain::class => [
    //   'Access-Control-Allow-Origin' => '*', // 允许任何域名
    //   'Access-Control-Allow-Headers' => 'X-Requested-With,Content-Type,start,limit,lang,version,xzdToken', // 允许的请求头
    // ],
    //'cross_domain' => \app\middleware\CrossDomain::class,

];
